﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MediaDataModel;
using MediaDataModel.Common;
using MediaDataModel.Common.Other;
using MediaClient.Common;
using System.IO;
using FlexCapture;

namespace MediaClient
{
    public partial class TestForm : Form
    {

        private FlexEncoder encoder;
        Button btn = new Button();

        public TestForm()
        {
            InitializeComponent();
            encoder = FlexEncoder.CreateInstance();
            int res = encoder.SetFlexInfo(panel1.Handle);
            //Dictionary<string, DiscState> drives = BurnHelper.InitAndGetDriversName();
            //DiscState oDiscState = new DiscState();
            //ulong discRemainCapacity = 0;
            //BurnHelper.SynchronizationBurnData("feiyu burning Test",1,drives.Keys.First() , new Dictionary<string, string> { { @"E:\BCMediaTest\test.avi", @"feiyu\test.avi" }}, ref oDiscState, ref discRemainCapacity, false, "");
        }

        private void label2_Click(object sender, EventArgs e)
        {
            MessageBox.Show(sender.ToString());
        }


        
        private void TestForm_Load(object sender, EventArgs e)
        {
            
        }

        private void btnTest_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
                MessageBox.Show("this ");
        }

        private void btnTest_Click(object sender, EventArgs e)
        {
            MessageBox.Show(sender.ToString());
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //encoder.StartCapture(@"D:\" + DateTime.Now.Second.ToString() + ".mpg", "", "");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //Shelf.ShelfForm oShelf = new Shelf.ShelfForm();
            //oShelf.ShowDialog();

        }

        
    }
}
